import mysql_class import MYSQL
import threading

res = []
def run(z, aa):
    SQL = "SELECT * FROM student WHERE id=\'"+aa+"\'"
    my = MYSQL(SQL)
    alldata = my.getRs()
    res.append(alldata)

if __name__ = "__main__":
    threads = []

    k = 5
    for a in range(0, k):
        z = threading.Thread(target=run, args=(a, str(a+1)))
        threads.append(z)
        
    
